package com.shihan.io;

import java.io.InputStream;

public class Resource {

    /**
     * 将硬盘资源文件，加载到内存中.
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path){
        InputStream inputStream = Resource.class.getClassLoader().getResourceAsStream(path);
        return inputStream;
    }
}
